#ifndef __ADC_H
#define __ADC_H

/*********************************************************************
 * INCLUDES
 */
#include "stdio.h"
#include <at32f4xx.h>

/* Private define ------------------------------------------------------------*/
/*define button*/
typedef enum
{
    CurrU_ADC4 = 0,
    CurrV_ADC5,
    CurrALL_ADC6,
} MC_ADC_Type;

#define ADC_NUM  3

#define CurrU_ADC4_PIN              GPIO_Pins_4           //PA4(ADC1_IN4)
#define CurrU_ADC4_GPIO             GPIOA
#define CurrU_ADC4_RCC_CLK          RCC_APB2PERIPH_GPIOA

#define CurrV_ADC5_PIN              GPIO_Pins_5           //PA5(ADC1_IN5)
#define CurrV_ADC5_GPIO             GPIOA
#define CurrV_ADC5_RCC_CLK          RCC_APB2PERIPH_GPIOA

#define CurrALL_ADC6_PIN            GPIO_Pins_6           //PA6(ADC1_IN6)
#define CurrALL_ADC6_GPIO           GPIOA
#define CurrALL_ADC6_RCC_CLK        RCC_APB2PERIPH_GPIOA


#define ADCDMA_CH_COUNT    ADC_NUM
#define ADCDMA_GATHER_NUM  20
/* Extern variables ---------------------------------------------------------*/


/* Private functions ---------------------------------------------------------*/
/*Button Operation function*/
extern void ADC_DMA_Init(void);
extern void Get_DMA_Adc(void);

#endif /* __ADC_H */





























